package com.hb.core.pojo.project.evaluation.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.hb.core.pojo.parent.MPCommonEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

/**
 * <p>
 * 评委会标段信息
 * </p>
 *
 * @author zhaojk
 * @since 2021-08-30
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("trade_evaluation_committee_bid")
@ApiModel(value = "EvaluationCommitteeBid对象", description = "评委会标段信息")
@NoArgsConstructor
public class EvaluationCommitteeBid extends MPCommonEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "标段ID")
    private Long sectionId;

    @ApiModelProperty(value = "评委会ID")
    private Long evaluationCommitteeId;

    @ApiModelProperty(value = "是否结束评标 1:结束 2 未结束")
    private Integer endFlag;

    public EvaluationCommitteeBid(Long sectionId, Long judgeId) {
        this.sectionId = sectionId;
        this.evaluationCommitteeId = judgeId;
        this.endFlag = 2;
        buildBaseData(1);
    }
}
